class AccountEntity {
	int code;
	AccountData data;

	AccountEntity({this.code, this.data});

	AccountEntity.fromJson(Map<String, dynamic> json) {
		code = json['code'];
		data = json['data'] != null ? new AccountData.fromJson(json['data']) : null;
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['code'] = this.code;
		if (this.data != null) {
      data['data'] = this.data.toJson();
    }
		return data;
	}
}

class AccountData {
	List<Null> myAnimals;
	AccountDataUser user;

	AccountData({this.myAnimals, this.user});

	AccountData.fromJson(Map<String, dynamic> json) {
		if (json['my_animals'] != null) {
			myAnimals = new List<Null>();
		}
		user = json['user'] != null ? new AccountDataUser.fromJson(json['user']) : null;
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.myAnimals != null) {
      data['my_animals'] =  [];
    }
		if (this.user != null) {
      data['user'] = this.user.toJson();
    }
		return data;
	}
}

class AccountDataUser {
	int birthday;
	int payPoints;
	String accountNumber;
	dynamic city;
	dynamic accToken;
	bool isSetPas;
	int sign;
	dynamic realName;
	String nick;
	String head;
	dynamic password;
	dynamic identification;
	dynamic weibo;
	dynamic jgId;
	dynamic accid;
	int id;
	int rankPoints;
	dynamic email;
	dynamic qq;
	int types;
	String level;
	int lastLogin;
	String sex;
	dynamic wechat;
	bool isSign;
	int money;
	String phone;
	int status;
	dynamic desc;

	AccountDataUser({this.birthday, this.payPoints, this.accountNumber, this.city, this.accToken, this.isSetPas, this.sign, this.realName, this.nick, this.head, this.password, this.identification, this.weibo, this.jgId, this.accid, this.id, this.rankPoints, this.email, this.qq, this.types, this.level, this.lastLogin, this.sex, this.wechat, this.isSign, this.money, this.phone, this.status, this.desc});

	AccountDataUser.fromJson(Map<String, dynamic> json) {
		birthday = json['birthday'];
		payPoints = json['pay_points'];
		accountNumber = json['account_number'];
		city = json['city'];
		accToken = json['acc_token'];
		isSetPas = json['isSetPas'];
		sign = json['sign'];
		realName = json['real_name'];
		nick = json['nick'];
		head = json['head'];
		password = json['password'];
		identification = json['identification'];
		weibo = json['weibo'];
		jgId = json['jg_id'];
		accid = json['accid'];
		id = json['id'];
		rankPoints = json['rank_points'];
		email = json['email'];
		qq = json['qq'];
		types = json['types'];
		level = json['level'];
		lastLogin = json['last_login'];
		sex = json['sex'];
		wechat = json['wechat'];
		isSign = json['isSign'];
		money = json['money'];
		phone = json['phone'];
		status = json['status'];
		desc = json['desc'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['birthday'] = this.birthday;
		data['pay_points'] = this.payPoints;
		data['account_number'] = this.accountNumber;
		data['city'] = this.city;
		data['acc_token'] = this.accToken;
		data['isSetPas'] = this.isSetPas;
		data['sign'] = this.sign;
		data['real_name'] = this.realName;
		data['nick'] = this.nick;
		data['head'] = this.head;
		data['password'] = this.password;
		data['identification'] = this.identification;
		data['weibo'] = this.weibo;
		data['jg_id'] = this.jgId;
		data['accid'] = this.accid;
		data['id'] = this.id;
		data['rank_points'] = this.rankPoints;
		data['email'] = this.email;
		data['qq'] = this.qq;
		data['types'] = this.types;
		data['level'] = this.level;
		data['last_login'] = this.lastLogin;
		data['sex'] = this.sex;
		data['wechat'] = this.wechat;
		data['isSign'] = this.isSign;
		data['money'] = this.money;
		data['phone'] = this.phone;
		data['status'] = this.status;
		data['desc'] = this.desc;
		return data;
	}
}
